<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('回复学员留言信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-message-edit" th:object="${message}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">留言信内容：</label>
                <div class="col-sm-8">
                    <span th:text="*{content}" class="form-control" ></span>
                </div>
            </div>            
            <div class="form-group">    
                <label class="col-sm-3 control-label">学员姓名：</label>
                <div class="col-sm-8">
                    <span th:text="*{studentName}" class="form-control" ></span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">留言对象：</label>
                <div class="col-sm-8">
                    <span th:text="*{messageObject}" class="form-control" ></span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">留言时间：</label>
                <div class="col-sm-8">
                   <span  th:text="${#dates.format(message.messageTime, 'yyyy-MM-dd')}" class="form-control" ></span>                    
                </div>
            </div> 
            <div class="form-group">    
                <label class="col-sm-3 control-label">留言回复信息：</label>
                <div class="col-sm-8">
                    <textarea name="backContent"  class="form-control" ></textarea>                   
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "course/message";
        $("#form-message-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/answeringSaved", $('#form-message-edit').serialize());
            }
        }

    </script>
</body>
</html>